package org.cookhub.entities.recipes;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;


@RooJavaBean
@RooToString
@RooEntity
public class Ingridient
{

	@NotNull
	@Column(unique = true)
	private Integer id;

	@NotNull
	@Column(unique = true)
	@Size(min = 2, max = 35)
	private String name;
}
